<!-- INCLUDE overall_header.html -->
	<script type="text/javascript">
	// <![CDATA[
		function update_image(newimage)
		{
			document.getElementById('ufaq').src = (newimage) ? "{UFAQPIC_PATH}/" + encodeURI(newimage) : "./images/spacer.gif";
		}

	// ]]>
	</script> 
<a name="maincontent"></a>

<!-- IF S_EDIT -->
	<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>

	<h1><!-- IF S_EDIT == 1 -->{L_ACP_ADD_CAT}<!-- ELSE -->{L_ACP_CAT_EDITING}<!-- ENDIF --></h1>

	<form id="acp_diafilms" method="post" action="{U_ACTION}">

	<fieldset>
	<dl>
		<dt><label for="title">{L_UFAQ_CAT}:</label></dt>
		<dd><input name="title" type="text" id="title" value="{CAT_TITLE}" maxlength="255" size="50" /></dd>
	</dl>
	<dl>
		<dt><label for="img">{L_UFAQ_CAT_IMG}:</label><br /><span>{L_UFAQ_CAT_IMG_EXPLAIN}</span></dt>
		<dd><select name="img" size="1" id="img" onchange="update_image(this.options[selectedIndex].value);">{S_UFAQ_PIC_LIST}</select>
		<!-- IF U_CAT_IMG --><img src="{U_CAT_IMG}" id="ufaq" alt="" /><!-- ENDIF --></dd>
	</dl>
	<p class="submit-buttons">
		<input type="hidden" name="action" value="save" />
		<input type="hidden" name="cat_users_watch" type="text" id="cat_users_watch" value="{CAT_USERS_WATCH}" />
		<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
		<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
		{S_FORM_TOKEN}
	</p>
	</fieldset>
	</form>

<!-- ELSE -->

	<h1>{L_UFAQ} &raquo; {L_UFAQ_SETTINGS}</h1>

<form id="acp_ufaq" method="post" action="{U_ACTION}">
	<fieldset>
		<legend>{L_UFAQ_SELECT}</legend>	
		<dl>
			<dt><label>{L_UFAQ_VERSION}</label></dt>
			<dd><strong>{S_UFAQ_VERSION}</strong></dd>
		</dl>
		<dl>
			<dt><label for="ufaq_enable">{L_UFAQ_STATUS}</label></dt>
			<dd><input type="radio" class="radio" name="ufaq_enable" value="1" <!-- IF UFAQ_ENABLE -->checked="checked"<!-- ENDIF -->/> {L_YES} &nbsp; 
				<input type="radio" class="radio" name="ufaq_enable" value="0" <!-- IF not UFAQ_ENABLE -->checked="checked"<!-- ENDIF --> /> {L_NO}</dd>
		</dl>
		<dl>
			<hr>
		</dl>
		<dl>
			<dt><label for="ufaq_use_rating">{L_UFAQ_USE_RATING}</label></dt>
			<dd><input type="radio" class="radio" name="ufaq_use_rating" value="1" <!-- IF UFAQ_USE_RATING -->checked="checked"<!-- ENDIF -->/> {L_YES} &nbsp;
				<input type="radio" class="radio" name="ufaq_use_rating" value="0" <!-- IF not UFAQ_USE_RATING -->checked="checked"<!-- ENDIF --> /> {L_NO}</dd>
		</dl>
		<dl>
			<dt><label for="ufaq_use_watching">{L_UFAQ_USE_WATCHING}</label></dt>
			<dd><input type="radio" class="radio" name="ufaq_use_watching" value="1" <!-- IF UFAQ_USE_WATCHING -->checked="checked"<!-- ENDIF -->/> {L_YES} &nbsp;
				<input type="radio" class="radio" name="ufaq_use_watching" value="0" <!-- IF not UFAQ_USE_WATCHING -->checked="checked"<!-- ENDIF --> /> {L_NO}</dd>
		</dl>
		<dl>
			<dt><label for="ufaq_guest_premode">{L_UFAQ_GUEST_PREMODE}</label><br /><span>{L_UFAQ_GUEST_PREMODE_EXPLAIN}</span></dt>
			<dd><input type="radio" class="radio" name="ufaq_guest_premode" value="1" <!-- IF UFAQ_GUEST_PREMODE -->checked="checked"<!-- ENDIF -->/> {L_YES} &nbsp;
				<input type="radio" class="radio" name="ufaq_guest_premode" value="0" <!-- IF not UFAQ_GUEST_PREMODE -->checked="checked"<!-- ENDIF --> /> {L_NO}</dd>
		</dl>
	</fieldset>
	<fieldset>
		<legend>{L_UFAQ_USERS_SELECT}</legend>
		<dl>
			<dt><label for="ufaq_avatar_questors">{L_UFAQ_USE_AVATAR_QUESTOR}</label></dt>
			<dd><input type="radio" class="radio" name="ufaq_avatar_questors" value="1" <!-- IF UFAQ_USE_AVATAR_QUESTOR -->checked="checked"<!-- ENDIF -->/> {L_YES} &nbsp;
				<input type="radio" class="radio" name="ufaq_avatar_questors" value="0" <!-- IF not UFAQ_USE_AVATAR_QUESTOR -->checked="checked"<!-- ENDIF --> /> {L_NO}</dd>
		</dl>
		<dl>
			<dt><label for="ufaq_avatar_answers">{L_UFAQ_USE_AVATAR_ANSWER}</label></dt>
			<dd><input type="radio" class="radio" name="ufaq_avatar_answers" value="1" <!-- IF UFAQ_USE_AVATAR_ANSWER -->checked="checked"<!-- ENDIF -->/> {L_YES} &nbsp;
				<input type="radio" class="radio" name="ufaq_avatar_answers" value="0" <!-- IF not UFAQ_USE_AVATAR_ANSWER -->checked="checked"<!-- ENDIF --> /> {L_NO}</dd>
		</dl>
		<dl>
			<dt><label for="ufaq_tooltip_len">{L_UFAQ_TOOLTIP_LEN}</label></dt>
			<dd><input type="text" name="ufaq_tooltip_len" size="3" value="{UFAQ_TOOLTIP_LEN}" /></dd>
		</dl>
	</fieldset>
	<fieldset>
		<p class="submit-buttons">
			<input name="action" type="hidden" value="submit">
			<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
			<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
		</p>
	</fieldset>
	{S_FORM_TOKEN}
</form>

	<h1>{L_UFAQ_CATS_LIST}</h1>
	
	<form id="acp_ufaq" method="post" action="{U_ACTION}">
	<fieldset class="tabulated">
	<table cellspacing="1">
	<tbody>
	<th>ID</th>
	<th colspan="2">{L_UFAQ_CAT}</th>
	<th>{L_UFAQ_COUNT}</th>
	<th>{L_ACTION}</th>
<!-- BEGIN cats -->
<!-- IF cats.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
<td style="text-align: center;" width="10">{cats.CAT_ID}</td>
<td width="52"><img src="{cats.CAT_IMG}" style="max-height: 50px;" alt=""></td>
<td><a href="{cats.U_CAT}">{cats.CAT_NAME}</a></td>
<td style="text-align: center;">{cats.CAT_COUNT}</td>
<td style="text-align: center;"><a href="{cats.U_EDIT}">{ICON_EDIT}</a> <a href="{cats.U_DELETE}">{ICON_DELETE}</a></td>
</tr>
<!-- END cats -->
	</tbody>
	</table>

	<p class="quick">
		<input name="action" type="hidden" value="add">
		<input class="button2" name="add" type="submit" value="{L_ACP_ADD_CAT}" />
		{S_FORM_TOKEN}
	</p>
	</fieldset>
	</form>

<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->
